package main

import (
	"fmt"
	"unsafe"
)

func main() {
	// var i int8  = -128// -128~127
	// var a uint8 = 0 //0~255=>byte

	var n1 = 100
	fmt.Printf("n1的类型 %T \n", n1)

	var n2 int64 = 10
	fmt.Printf("n2的类型 %T   n2占用的字节数 %d", unsafe.Sizeof(n2))

	nun := 5.12
	num1 := .123 //=>0.123
	num2 := 1.123e2
	num3 := 1.123E2
	num4 := 1.123e-1
	fmt.Printf("nun =%v,num1=%v,num2=%v,num3=%v,num4=%v", nun, num1, num2, num3, num4)

}
